package com.woniu.market_stall.service;


import com.woniu.market_stall.mapper.PermissionMapper;
import com.woniu.market_stall.vo.PermissionVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class PermissionService {

    @Autowired
    PermissionMapper permissionMapper;

    public List<PermissionVo> queryAllMenu(){
        return permissionMapper.selectAllMenu();
    }


    public List<Long> queryPermissionIdByRoleId(int id) {
        return permissionMapper.selctPermissionIdByRoleId(id);
    }

    public List<PermissionVo> queryMenuByManager(int mid) {
        return permissionMapper.selectMenuByManager(mid);
    }
}
